﻿using System.Xml.Serialization;

namespace Jim.OA;

public class OAGetJobTitlePage
{
    public DateTime Created { get; set; }
    public DateTime Modified { get; set; }
    public string subcompanyname { get; set; }
    public string subcompanycode { get; set; }
    public string custom_data { get; set; }
    public string canceled { get; set; }
    public int pagesize { get; set; }
    public int curpage { get; set; }
}

public class OAGetJobTitlePageResponse
{
    public List<JobTitleDetail> DataList { get; set; }
    public string Code { get; set; }
    public string Msg { get; set; }
    public int TotalSize { get; set; }
    public int Page { get; set; }
    public int PageSize { get; set; }
}

public class JobTitleDetail
{
    public string SubCompanyDesc { get; set; }
    public string Canceled { get; set; }
    public string SubCompanyCode { get; set; }
    public string SupSubComid { get; set; }
    public string Created { get; set; }
    public string Modified { get; set; }
    public string SubCompanyName { get; set; }
    public string Id { get; set; }
    public string Url { get; set; }
    public string ShowOrder { get; set; }
}

/// <summary>
/// 可创建的流程列表 (对外)
/// </summary>
//[XmlRoot("result")]
[XmlType("result")]
//[XmlRoot(ElementName = " result ")]
public class SynJobTitleResponse
{
    [XmlElement("message")]
    public SynJobTitleResponseData Message { get; set; }
}

public class SynJobTitleResponseData
{
    [XmlText]
    public string Message { get; set; }

    [XmlAttribute("value")]
    public string Value { get; set; }

}